package com.qtong.baby.test;



import java.util.Date;

import com.qtong.baby.dao.WeightDao;
import com.qtong.baby.vo.Weight;

import android.app.Activity;
import android.content.Context;

public class test extends Activity {
	private Context context;
	public test(Context context) {
		super();
		this.context = context;
		
	}
	public void what(){
		WeightDao wd=new WeightDao(context);
		wd.getReadableDatabase();
		Weight w=new Weight();
		Date d=new Date();
		w.setDate(d);
		w.setValue(20);
		wd.save(w);		
		
	}
}
